//
//  SpriteFrog.h
//  FrogDrying
//
//  Created by Le Thanh Hai on 4/6/13.
//  Copyright 2013 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Global.h"
#import "LotusAnimation.h"

typedef enum {
    kStateNormal,
    kStateJump,
    kStateDrag,
    kStateFall,
    kStateReset,
} StateFrog;

typedef void (^CompleteEvent)();

@interface SpriteFrog : CCSprite {
    CCAnimation *frogNormal;
    CCAnimation *frogJump;
    CCAnimation *waveDrop;
    float timeJump;
    LotusAnimation *nextLotus;
}
@property(nonatomic, assign) StateFrog state;
@property(nonatomic, assign) ColorType colour;
@property(nonatomic, assign) LotusAnimation *currentLotus;
@property(nonatomic, assign) NSMutableArray *allLotus;
@property(nonatomic, copy) CompleteEvent completeEvent;
-(CGRect)rect;
@end
